home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / ctutor2.zip / RECURSON.C < prev    next >
C/C++ Source or Header  |  1987-07-04  |  322b  |  19 lines

  1.                                          /* Chapter 5 - Program 5 */
  2. main()
  3. {
  4. int index;
  5.  
  6.    index = 8;
  7.    count_dn(index);
  8. }
  9.  
  10. count_dn(count)
  11. int count;
  12. {
  13.    count--;
  14.    printf("The value of the count is %d\n",count);
  15.    if (count > 0)
  16.       count_dn(count);
  17.    printf("Now the count is %d\n",count);
  18. }
  19.